﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Security;

namespace DAL
{
    public class Membership
    {
        public static bool ValidateUser(string username, string password)
        {
            return global::System.Web.Security.Membership.ValidateUser(username, password);
        }

        public static MembershipUser CreateUser(string userName, string password, string email, out global::System.Web.Security.MembershipCreateStatus createStatus)
        {
            return global::System.Web.Security.Membership.CreateUser(userName, password, email, null, null, true, null, out createStatus);
        }

        public static global::System.Web.Security.MembershipUser GetUser(string providerUserKey, bool userIsOnline)
        {
            return global::System.Web.Security.Membership.GetUser(providerUserKey, userIsOnline);
        }
    }
}
